<?php
/**
 * Prado Portal.
 *
 * @author Steen Rabol <steen.rabol@gmail.com>
 * @link http://www.pradoportal.dk/
 * @copyright Copyright &copy; 2006,2007,2008 Steen Rabol
 * @license http://www.pradoportal.dk
 * @version $Id: ShortStat.php 320 2008-11-23 07:18:37Z steen.rabol@gmail.com $
 *
 */

Prado::using('Application.Common.Data.PortalToDoRecord');
Prado::using('Application.Common.Data.PortalUserRecord');
include_once(Prado::getPathOfNamespace('Application.Common.3rdParty.shortstat') . '/shortstat.php');

class ShortStat extends PortalAdminPage
{
	public function dataBind()
	{
	}

	public function onLoad($param)
	{
		parent::onLoad($param);
		$this->setAdminPageTitle('Home');

		if(!$this->IsPostBack)
		{
			$this->dataBind();
		}
	}

	public function GetCssStyle($item)
	{
		switch($item->priority)
		{
			case 0:	return 'background-color:#FFFF80';break;
			case 1:	return 'background-color:#80FF80';break;
			case 2:	return 'background-color:#FF8080';break;
		}
	}

	public function getTz()
	{
		return "+1";
	}
}
?>